//package level.editor.tool.option;
//
//import java.awt.Dimension;
//import java.awt.FlowLayout;
//import java.awt.event.ActionEvent;
//import java.awt.event.ActionListener;
//import java.awt.event.MouseEvent;
//
//import javax.swing.JCheckBox;
//import javax.swing.JPanel;
//
//import level.editor.command.Command;
//import level.editor.tool.Tool;
//import level.editor.tool.ToolView;
//
//public class ToolOption extends JPanel implements Tool, ActionListener
//{
//	private ToolView view;
//	private JCheckBox displayGrid;
//	private JCheckBox displayForeground;
//	private JCheckBox displayBackground1;
//
//	public ToolOption(ToolView view)
//	{
//		super(new FlowLayout(FlowLayout.LEADING, 0, 0));
//		setPreferredSize(new Dimension(400, 400));
//		this.view = view;
//		init();
//	}
//
//	private void init()
//	{
//		JCheckBox displayGrid = new JCheckBox("Display Grid", true);
//		displayGrid.addActionListener(this);
//		this.displayGrid = displayGrid;
//		add(displayGrid);
//		
//		JCheckBox displayForeground = new JCheckBox("Foreground", true);
//		displayForeground.addActionListener(this);
//		this.displayForeground = displayForeground;
//		add(displayForeground);
//		
//		JCheckBox displayBackground1 = new JCheckBox("Background1", true);
//		displayBackground1.addActionListener(this);
//		this.displayBackground1 = displayBackground1;
//		add(displayBackground1);
//	}
//	
////	public void updateCommand(String option, Boolean isSelected, Boolean toggle)
////	{
////		if (toggle)
////		{
////			if (option.equals("Display Grid"))
////			{
////				displayGrid.doClick();
////			}
////			else if (option.equals("Foreground"))
////			{
////				displayForeground.doClick();
////			}
////			else if (option.equals("Background1"))
////			{
////				displayBackground1.doClick();
////			}
////		}
////		else if (!toggle)
////		{
////			UpdateOptionLevelCommand update = new UpdateOptionLevelCommand(option, isSelected, false);
////			view.pushUpCommand(update);
////		}
////	}
//
//	@Override
//	public void actionPerformed(ActionEvent e)
//	{
//		JCheckBox box = (JCheckBox) e.getSource();
////		updateCommand(box.getText(), box.isSelected(), false);
//	}
//
//	@Override
//	public void pushUpCommand(Command command)
//	{
//		// TODO Auto-generated method stub
//		
//	}
//
//	@Override
//	public void pushDownCommand(Command command)
//	{
//		// TODO Auto-generated method stub
//
//	}
//
//	@Override
//	public void handlePress(MouseEvent e)
//	{
//		// TODO Auto-generated method stub
//		
//	}
//
//}
